<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <script src="/js/jquery-1.11.0.min.js"></script>
    
</head>
<body style="padding: 15px;">
   <div class="panel panel-primary">
      <div class="panel-heading">
            <h3 class="panel-title">Panel title</h3>
      </div>
      <form class="panel-body" id="fm">
        <div>评论人:</div>
        <input type="text" class="form-control" name="username">
        <div>评论内容:</div>
        <textarea class="form-control" name="content"></textarea>
        <button type="submit" class="btn btn-primary">发布</button>
      </form>
   </div>
   <!-- 渲染容器 -->
   <ul class="list-group" id="tb">
</ul>
<!-- 存放动态ui数据结构的模版引擎 -->
<script type="text/html" id="tpl">
    {{each data}}
    <li class="list-group-item">
        <span class="badge" style="background-color: #f0ad4e">评论时间:{{$value.time}}</span>
        <span class="badge" style="background-color: #5bc0de">评论人:{{$value.username}}</span>
       {{$value.content}}
    </li>
    {{/each}}
</script>

    <script src="js/pllb.js"></script>
    <script src="/js/template-web.js"></script>
</body>
</html>